/**
  * @file     	menu.h
  * @author   	YangHaifeng
  * @email   	2995339193@qq.com
  * @version	V0.0
  * @license  	GNU General Public License (GPL)  
  * @detail		please follow the license!!!
  * @attention
  *  this file is aim to do something with menu									
  *   																	
  * @htmlonly 
  * <span style="font-weight: bold">History</span> 
  * @endhtmlonly 
  * Version|Auther|Describe
  * ------|----|-------- 
  * V0.0|YangHaifeng|Create File
  * <h2><center>&copy;COPYRIGHT YangHaifeng All Rights Reserved.</center></h2>
  */ 

#ifndef __MENU_H
#define __MENU_H

#include "driverlib.h"
#include <stdint.h>
#include <stdbool.h>
#include "oled.h"
#include "key.h"


/**
 * @brief 菜单结构体
 */
typedef struct 
{
	uint8_t current;			//当前组索引号
	uint8_t down;				//下翻索引号
	void (*operation)(void);	//动作
}menu_table_t;


extern uint8_t option;


void main_menu(void);

#endif //__MENU_H








